package day02;

public class test2 {
    public static void main(String[] args) {
        //扩展1，找最大值并输出
        int a = 568,b = 136;
        if (a>b) {
            System.out.println("最大值为a="+a);
        }else{
            System.out.println("最大值为b="+b);
        }
        int max = a>b?a:b;
        System.out.println("max="+max);
        //扩展2，判断并输出平年或者闰年
        int year = 2023;
        if ((year%4==0)&&(year%100!=0)||(year%400==0)) {
            System.out.println(year+"年是闰年");
        }else{
            System.out.println(year+"年是平年");
        }
        //扩展3，成绩等级判断
        int score = 101;
        if (score<=100 && score>=90) {
            System.out.println("成绩为A");
        } else if (score<90 && score >=80) {
            System.out.println("成绩为B");
        } else if (score<80 && score>=60) {
            System.out.println("成绩为C");
        } else if (score<60 && score>=0) {
            System.out.println("成绩为D");
        }else{
            System.out.println("成绩不合法");
        }
    }
}
